/* 
 *	Copyright 2014  Yanqing Wu
 *		email: yqwu_yqwu@126.com
 *
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
*/

#pragma once

#include "StdCtrlSkin_Enums.h"

class CStdCtrlSkinBgCellAttrib
{
public:
	CStdCtrlSkin_EnumBgType type;
	//	For gradient
	COLORREF color1;
	COLORREF color2;
	CStdCtrlSkin_EnumGradDir direction;
	BYTE alpha;
	//	For image
	CString filepath;
	CStdCtrlSkin_EnumImgMode drawmode;
	CStdCtrlSkin_EnumSticky srcorigin;
	COLORREF trans;
	bool bUseTrans;
	//	box around the cell, help demo
	bool bShowBox;
	COLORREF boxcolor;
public:

	CStdCtrlSkinBgCellAttrib(void)
	{
		color1 = RGB(0xff, 0xff, 0xff);
		color2 = RGB(0xff, 0xff, 0xff);
		direction = CStdCtrlSkin_EnumGradDir::HORIZONTAL;
		alpha = 0;
		drawmode = CStdCtrlSkin_EnumImgMode::STRETCH;
		srcorigin = CStdCtrlSkin_EnumSticky::C;
		trans = RGB(0xff, 0xff, 0xff);
		bUseTrans = false;
		bShowBox = false;
	}

	~CStdCtrlSkinBgCellAttrib(void)
	{
	}
};

